from django.urls import path
from .views import RegisterAPIView, LoginAPIView, UserInfoAPIView, UserListAPIView, UserUpdateAPIView, UserDeleteAPIView,UserSelfUpdateAPIView

urlpatterns = [
    path('register/', RegisterAPIView.as_view(), name='user-register'),
    path('login/', LoginAPIView.as_view(), name='user-login'),
    path('info/', UserInfoAPIView.as_view(), name='user-info'),
    path('list/', UserListAPIView.as_view(), name='user-list'),
    path('update/<int:user_id>/', UserUpdateAPIView.as_view(), name='user-update'), 
    path('delete/<int:user_id>/', UserDeleteAPIView.as_view(), name='user-delete'),
    path('self-update/', UserSelfUpdateAPIView.as_view(), name='user_self_update'),
]